package org.fire.mina;

import android.os.Bundle;
import android.os.Handler;
import android.os.Message;

public class MinaMessageHandlerThread extends Thread {
	private Handler handler;
	private String message;

	public MinaMessageHandlerThread(Handler handler, String message) {
		this.handler = handler;
		this.message = message;
	}

	@Override
	public void run() {
		Message msg = new Message();
		Bundle data = new Bundle();
		data.putString("minaMsg", this.message);
		msg.setData(data);
		handler.sendMessage(msg);
	}
}
